package com.tengju.bff.interfaces.covercharge.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tengju.bff.interfaces.covercharge.constant.DesensitionFieldType;
import com.tengju.bff.interfaces.covercharge.annotation.RoleDesensit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 *
 */
@Data
@ApiModel(value = "收益账户余额查询结果")
public class AdminServiceAccountQueryVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "代理id",required=true)
    private Integer idCode;

    @ApiModelProperty(value = "账户类型，对应账户类型表",required=true)
    private Integer accountType;

    @ApiModelProperty(value = "余额",required=true)
    private BigDecimal balance;

    @ApiModelProperty(value = "冻结金额",required=true)
    private BigDecimal freezeBalance;

    @ApiModelProperty(value = "创建时间",required=true)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date createdAt;

    @ApiModelProperty(value = "修改时间",required=true)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date updatedAt;

    @RoleDesensit(type = DesensitionFieldType.NAME)
    @ApiModelProperty(value = "姓名",required=true)
    private String name;

    @RoleDesensit(type = DesensitionFieldType.MOBILE)
    @ApiModelProperty(value = "电话",required=true)
    private String mobile;

}
